<#include "/frame/header.ftl"/>
<#assign item = item>
<@showCommonItem item />
<#if is_goods?exists && is_goods>
	<#if item.getGoodsType()==2>
		<br/>
		单价：${item.getGold()}金币
			<#if (item.position == 0)>
			<br/><input name="num" maxlength="2" emptyok="false" format="*N" size='5' value='1'/>
			<anchor>购买
				<@go href="/${sid}/TR_BI?${item.id}/${pid}" method="post"/>
					<postfield name="num" value="$num"/>
				</go>
			</anchor>
			<#else><@a href="/${sid}/TR_BI?${item.id}/${pid}"/>购买</a>
			</#if>
		<#elseif in_city?exists && in_city && item.getGoodsType()==1>
		<br/>
		单价：${item.getMoney()}碎银
			<#if (item.position == 0)>
			<br/><input name="num" maxlength="2" emptyok="false" format="*N" size='5' value='1'/>
			<anchor>购买
				<@go href="/${sid}/TR_BI?${item.id}/${pid}" method="post"/>
					<postfield name="num" value="$num"/>
				</go>
			</anchor>
			<#else><@a href="/${sid}/TR_BI?${item.id}/${pid}"/>购买</a>
			</#if>
		</#if>
		<br/><br/>
		<anchor>
			<prev/>返回
		</anchor><br/>
	<#else>
	<anchor>
		<prev/>返回<br/>
	</anchor><br/>
</#if>
<#include "/frame/tail.ftl"/>